<%-- 
    Document   : adminOffers
    Created on : 7 déc. 2011, 17:45:28
    Author     : Gaëtan
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>

<table>
    <caption><s:property value="%{getText('offer.tab.title')}" /></caption>
    <tr>
        <th><s:property value="%{getText('offer.id')}" /></th>
        <th><s:property value="%{getText('offer.date')}" /></th>
        <th><s:property value="%{getText('offer.titre')}" /></th>
        <th><s:property value="%{getText('offer.entreprise')}" /></th>
        <th><s:property value="%{getText('offer.ville')}" /></th>
    </tr>
    <s:iterator value="offersList">
        <tr>
            <td><s:property value="id"/></td>
            <td><s:property value="dateOffre"/></td>
            <td><s:property value="titre"/></td>
            <td><s:property value="entreprise"/></td>
            <td><s:property value="ville"/></td>
            <td>
                <s:form method="post" action="editOfferAdmin" theme="simple">
                    <s:hidden name="id" />
                    <s:submit type="image" src="images/edit.gif" label="%{getText('offer.edit')}" title="%{getText('offer.edit')}" />
                </s:form>
            </td>
            <td>
                <s:form method="post" action="deleteOfferAdmin" theme="simple">
                    <s:hidden name="id" />
                    <s:submit type="image" src="images/delete.gif" label="%{getText('offer.delete')}" title="%{getText('offer.delete')}" />
                </s:form>
            </td>
            <td>
                <s:form method="post" action="offerAdmin" theme="simple">
                    <s:hidden name="id" />
                    <s:submit type="image" src="images/plus.png" label="%{getText('offer.details')}" title="%{getText('offer.details')}" />
                </s:form>
            </td>
        </tr>
    </s:iterator>

</table>

